package com.azt.api.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ProHotProductShow {

    private Integer id;

    /**
     * 楼层Id
     */
    private Integer floorId;

    /**
     * 产品ID
     */
    private Integer productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 排序
     */
    private Integer seq;

    /**
     * 生效时间
     */
    private String starttime;

    /**
     * 失效时间
     */
    private String endtime;

    /**
     * 会员价格
     */
    private Double memberPrice;

    /**
     * 爆品价格
     */
    private Double hotPrice;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = toStrDate(starttime);
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = toStrDate(endtime);
    }

    public Double getMemberPrice() {
        return memberPrice;
    }

    public void setMemberPrice(Double memberPrice) {
        this.memberPrice = memberPrice;
    }

    public Double getHotPrice() {
        return hotPrice;
    }

    public void setHotPrice(Double hotPrice) {
        this.hotPrice = hotPrice;
    }

    private String toStrDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(date);
    }
}
